
<%@ page import="allocator.Semestre" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="meu_layout">
		<g:set var="entityName" value="${message(code: 'semestre.label', default: 'Semestre')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div class="nav" role="navigation">
			<ul class="nav nav-tabs">
			    <li><a class="" href="${createLink(uri: '/')}"><i class="icon-home icon-black"></i> <g:message code="default.home.label"/></a></li>
			    <li><g:link class="" action="create"><i class="icon-plus icon-black"></i> <g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-semestre" class="content scaffold-list" role="main">
			<h3 style="margin-bottom: 10px"><g:message code="default.list.label" args="[entityName]" /></h3>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<div class="span8">
				<table class="table table-bordered">
					<thead>
						<tr>
						
							<g:sortableColumn property="numero" title="${message(code: 'semestre.numero.label', default: 'Numero')}" />
						
							<th><g:message code="semestre.curso.label" default="Curso" /></th>
						
							<th><g:message code="semestre.horario.label" default="Horario" /></th>
						
						</tr>
					</thead>
					<tbody>
					<g:each in="${semestreInstanceList}" status="i" var="semestreInstance">
						<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
						
							<td><g:link action="show" id="${semestreInstance.id}">${fieldValue(bean: semestreInstance, field: "numero")}</g:link></td>
						
							<td>${fieldValue(bean: semestreInstance, field: "curso")}</td>
						
							<td>${fieldValue(bean: semestreInstance, field: "horario")}</td>
						
						</tr>
					</g:each>
					</tbody>
				</table>
			</div>
			<div class="pagination">
				<g:paginate total="${semestreInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
